package com.ys.enume.finance;

//公司实时资金冻结资金
public class TcwOperateFrozenRunningEnum {
    public enum DocumentType {
        TCWPAYMENTRETURNITEM("预付款退回申请", 0),
        TCWWANLIPAYMENTRETURNITEM("万里汇预付款退回", 1),
        TCG_PURCHASEPAYMENT("采购付款", 2),
        TP_AplusSq("A+申请", 3),
        TP_ProductActiveSq("listing库申请", 4),
        TCW_ExpenseAllocationByManage("费用划拨单(管理)", 5),
        TCW_ExpenseAllocation("费用划拨单", 6),
        TCW_ExpenseSettlement("费用结算单", 7),
        TCG_PurchaseByPlan("采购计划单", 8),
        TCG_PurchaseContract("采购合同单", 9),
        TCG_PurchaseOrderPay("采购付款单", 10),
        TCC_Allocate("预约调拨单", 11),
        TCG_PurchaseByOrder("采购订单", 12),
        TCC_Distribute("手工分配单", 13),
        TCC_AllocateCancel("预约调拨取消单", 14),
        TCG_PurchaseAppointOrder("预约采购单", 15),
        TCC_FbaPlan("FBA计划单", 16),
        ;
        public String name;
        public Integer value;

        private DocumentType(String name, Integer value) {
            this.name = name;
            this.value = value;
        }

        public static String getName(int value) {
            for (DocumentType e : DocumentType.values()) {
                if (e.value == value) {
                    return e.name;
                }
            }

            return "";
        }

        public static Integer getValue(String name) {
            for (DocumentType e : DocumentType.values()) {
                if (e.name.equals(name)) {
                    return e.value;
                }
            }
            return null;
        }
    }
}
